package com.timothy.fund.http;

import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;

public class HttpRequest {

	public static String getSecurityInfoList(String url_pre,String securityCodes) {
		String msg = null;
		String urlStr = url_pre+securityCodes;
		try{
			URL url =new URL(urlStr);
			HttpURLConnection conn = (HttpURLConnection)url.openConnection();
			InputStream in = conn.getInputStream();
			byte[] buffer = new byte[in.available()];
			in.read(buffer);
			msg = new String(buffer);
			in.close();
			
		}catch(Exception e){
			
		}
		return msg;
    }
}
